﻿$(document).on("pageInit", "#teacher-cource-list", function (e, id, page) {
    loadList();

    function loadList() {
        $(page).find("#list").empty();
        $.getJSON("/courceinfo/GetCourceList4TimeTable", {}, function (response) {
            $.each(response, function (index, item) {
                var frame = $('<li class="item-content item-link"><div class="item-media"><i class="icon icon-f7"></i></div><a href="/student/list4cource/' + item.CourceId + '" class="item-inner" data-no-cache="true"><div class="item-title">' + item.CourceName + '</div></a> </li>');
                $(page).find("#list").append(frame);
            });
        });
    }
});